package com.pkq.enums;

/**
 * @author: little_lunatic
 * @Date: 2021/9/15 1:57
 * @Description: enum有几个枚举对象就会调用几次构造方法
 */
enum AccountType {
    SAVING, FIXED, CCC, lll;

    private AccountType() {
        System.out.println("hhhhhhhhhh");
    }
}

public class EnumOne {
    public static void main(String[] args) {
        System.out.println("AccountType.FIXED = " + AccountType.FIXED);
    }
}